<%@ page language="java" contentType="text/html; charset=UTF-8"    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec"    uri="http://www.springframework.org/security/tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<sec:authentication property="principal" var="currentPrincipal" scope="page" />

<fmt:setBundle basename="ApplicationMessage" />
<fmt:setLocale value="zh_CN" />

<!DOCTYPE html>
<html lang="zh-CN">
<head>

  <%@ include file="/WEB-INF/include/meta.jsp"%>
  <%@ include file="/WEB-INF/include/css.jsp"%>

</head>

<body class="ms-theme-blue">

  <%@ include file="/WEB-INF/include/header.jsp"%>
  <%@ include file="/WEB-INF/include/submenu.jsp"%>
  
  <div class="container-fluid ms-container has-ms-sidemenu">
    
    <ol class="ms-breadcrumb breadcrumb">
      <li class="active">代理管理&nbsp;&nbsp;-&nbsp;&nbsp;详情</li>
    </ol>
    
    <div class="ms-content-layout ">

     <ul class="nav nav-tabs ms-nav-tabs" role="tablist">
        <li role="presentation" class="active">
          <a href="${ctx.host}/agent-audits/${agentApplies.id}">基本信息</a>
        </li>
        
       <%--  <li class="pull-right">
          <div class="nav-tabs-operation">
            <a href="${ctx.host}/fms-users/${user.id}/edit" data-target="#edit" data-toggle="modal">修改基本信息</a>&nbsp;&nbsp;
          </div>
        </li> --%>
      </ul> 

      <div class="form-horizontal ms-form form-personal-info">
        <div class="form-group ms-form-group">
        	 	<label class="control-label col-xs-2" style="width: 12%;">Email：</label>
          		<div class="col-xs-2">
            		<p class="form-control-static">${agentApplies.email}</p>
          		</div>
          	<label class="control-label col-xs-2" style="width: 12%;">姓名：</label>
          		<div class="col-xs-2">
            		<p class="form-control-static">${agentApplies.name}</p>
          		</div>
          	<label class="control-label col-xs-2" style="width: 12%;">手机：</label>
          		<div class="col-xs-2">
            		<p class="form-control-static">${agentApplies.mobile}</p>
          		</div>
        </div>

        <div class="form-group ms-form-group">
          	<label class="control-label col-xs-2" style="width: 12%;" >关联分区：</label>
          		<div class="col-xs-2">
            		<p class="form-control-static">${agentApplies.district.name}</p>
          		</div>
           	<label class="control-label col-xs-2" style="width: 12%;">代理类型：</label>
          		<div class="col-xs-2">
            		<p class="form-control-static">${agentApplies.type.description}</p>
          		</div>
          	<label class="control-label col-xs-2" style="width: 12%;" >公司名称：</label>
          		<div class="col-xs-2">
            		<p class="form-control-static">${agentApplies.companyName}</p>
          		</div>
        </div>

        <div class="form-group ms-form-group">
          	<label class="control-label col-xs-2" style="width: 12%;">公司地址：</label>
          		<div class="col-xs-2">
            		<p class="form-control-static">${agentApplies.companyAddress}</p>
          		</div>
          	<label class="control-label col-xs-2" style="width: 12%;" >申请时间：</label>
          		<div class="col-xs-2">
            		<p class="form-control-static"><fmt:formatDate value="${agentApplies.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/></p>
          		</div>
          	<label class="control-label col-xs-2" style="width: 12%;" >是否冻结：</label>
          		<div class="col-xs-2">
          	 		<p class="form-control-static">${agentApplies.disabled ? '是':'否'}</p>
          		</div>
        </div>
    
      </div>

  </div> 

  <%@ include file="/WEB-INF/include/script.jsp"%>
  <d:resource type="script" root="${ctx.resource}/build" src="js/page/agent/audit/agent-audit-view.js"/>
  <script type="text/javascript">
     require(['page/agent/audit/agent-audit-view'], function (page) {
       page.init()
     })
  </script>
  
</body>
</html>